<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.List" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<jsp:useBean id="settings" scope="request" type="com.googlecode.monitoring.web.SettingsBean"/>
<jsp:useBean id="dbStatistic" scope="request" type="com.googlecode.monitoring.dao.StatisticDao"/>
<jsp:useBean id="dbAgentStatusBean" scope="request" type="com.googlecode.monitoring.web.DbAgentStatusBean"/>
<jsp:useBean id="wsAgentStatusBean" scope="request" type="com.googlecode.monitoring.web.WsAgentStatusBean"/>
<jsp:useBean id="dbItems" scope="request" type="java.util.List<com.googlecode.monitoring.db.model.DbItemToCheck>"/>

<html>
<head>
    <title>${title}</title>
    <style type="text/css" media="all">@import "styles/main.css";</style>
    <jsp:include page="autoRefreshHeader.jsp"/>
</head>
<body>

<jsp:include page="monitoringSummary.jsp"/>

<div class="singlePanel">

    <h2>Web Monitoring</h2>


    <%

        if (dbAgentStatusBean.isDataFound()) {

    %>

    <table>
        <tr>
            <th>Page name</th>
            <th>Response code</th>
            <th>Statistic</th>
            <th>Last Check</th>
            <th>Next Check</th>
        </tr>
        <%
            List<String> pageNames = new ArrayList<String>();
            pageNames.add("Username");
            for (String pageName : pageNames) {
        %>
            <tr <%="STATE"%>>
                <td class="nowrap"><%=pageName%></td>
                <td><%="200"%></td>
                <td><%="STATISTIC"%></td>
                <td><%="LAST CHECK TIME"%></td>
                <td><%="NEXT CHECK TIME"%></td>
            </tr>
        <%
            }

        %>
    </table>

    <%

        }

    %>
</div>

</body>
</html>